﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AconITF.Controls
{
	public class SwitchToggle : ToggleButton
	{
		static SwitchToggle()
		{
			DefaultStyleKeyProperty.OverrideMetadata(typeof(SwitchToggle), new FrameworkPropertyMetadata(typeof(SwitchToggle)));
		}


		public string OnText
		{
			get { return (string)GetValue(OnTextProperty); }
			set { SetValue(OnTextProperty, value); }
		}

		public static readonly DependencyProperty OnTextProperty =
			DependencyProperty.Register("OnText", typeof(string), typeof(SwitchToggle), new PropertyMetadata("ON"));


		public string OffText
		{
			get { return (string)GetValue(OffTextProperty); }
			set { SetValue(OffTextProperty, value); }
		}

		public static readonly DependencyProperty OffTextProperty =
			DependencyProperty.Register("OffText", typeof(string), typeof(SwitchToggle), new PropertyMetadata("OFF"));

	}
}
